using System;
using System.Collections.Generic;
using System.Text;

namespace Yozeev.Common
{
    public class DataException
    {
        static List<YozeevException> list;
        
        public static List<YozeevException> getList()
        {
            if(list==null || list.Count<=0)
            {
                list = new List<YozeevException>();
                list.Add(new YozeevException("IX_Customers_CertificatesNum", "证件号重复"));
            }
            return list;
        }
    }
    public class YozeevException
    {
        /// <summary>
        /// 异常代码信息
        /// </summary>
        public string code { get; set; }
        /// <summary>
        /// 异常代码解释
        /// </summary>
        public string name { get; set; }

        public YozeevException(string _code,string _name)
        {
            code = _code;
            name = _name;
        }
    }
}
